-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WASI] finalizer + HTTP client child resources #107096
[WASI] finalizer + HTTP client child resources #107096
Conversation
- rewrite HTTP to respect child resources
#if defined(HOST_WASI) | ||
// TODO: Schedule the background job on WASI. Threads aren't yet supported in this build. | ||
#if defined(HOST_WASI) && defined(DISABLE_THREADS) | ||
mono_runtime_do_background_work (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not confident what are problems of doing it here synchronously and inline, for single-threaded runtime. Will test and see what happens.
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpHandler.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall. Thanks for doing this!
Just a few comments and questions inline.
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpHandler.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpHandler.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpInterop.cs
Outdated
Show resolved
Hide resolved
I expect this is still early version of the code. Until we have better test coverage, with our existing test suite.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
src/libraries/System.Net.Http/src/System/Net/Http/WasiHttpHandler/WasiHttpInterop.cs
Show resolved
Hide resolved
Co-authored-by: Joel Dice <[email protected]>
Related bytecodealliance/wit-bindgen#1039